<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>${fname}</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="./styles/FxOnlineReader.css" />
    <link rel="stylesheet" type="text/css" media="all" href="./styles/jquery.jscrollpane.mobile.css" />
    <link rel="stylesheet" type="text/css" href="./styles/dtreeMobile.css" />  
    <link rel="stylesheet" type="text/css" href="./styles/dialogmobile.css" />
    <link rel="stylesheet" type="text/css" href="./styles/contextmenu.css" />  
	<link rel="stylesheet" type="text/css" href="./styles/jquery.tinytooltip.css" />  
</head>
<body>
    <div id="MainFrame" style='width:100%;height:100%;left:0px;top:0px' class='fwr_main_frame_wnd'>
    </div>
    <div>
            <input id="fileid" type="hidden" value="${fileid}"/>
		<input id="fname" type="hidden" value="${fname}"/>
		<input id="qrcode" type="hidden" value="${qrcode}"/>
    </div>
</body>
<script type="text/javascript" src="./Scripts/jquery.min.1.4.2.js"></script>
<script type="text/javascript" src="./Scripts/toolswap.js"></script>
<script type="text/javascript" src="./Scripts/jquery.browser.mobile.js"></script>
<script type="text/javascript" src="./Scripts/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="./Scripts/jquery.tinytooltip.js"></script>
<script type="text/javascript" src="./Scripts/hammer.js"></script>

<script src="./Scripts/sea.js"  type="text/javascript"></script>
<script type="text/javascript">

	function GetHiddenParamValue(key) {
        if (document.getElementById(key))
            return document.getElementById(key).value;
        else
            return null;
    }

    function InitWebReader() {
         var fileID = GetHiddenParamValue("fileid");
        var fileName = GetHiddenParamValue("fname");
        var language = "en-us";
		var qrcodeUrl = GetHiddenParamValue("qrcode");
        var plugins = 767;
        seajs.use(['./Scripts/init.mobile.mini.js?v=10222335'], function (init)
		{
            var pReaderApp = init.InitReaderApp(fileID, fileName, "MainFrame",qrcodeUrl,true);
            pReaderApp.SetLanguage(language);
            init.SetPluginConfig(plugins);
          
            init.InitInstance();
        });
    }


	
	
    if (document.all) {
        window.attachEvent('onload', function () {
            InitWebReader();
        });
    } else {
        window.addEventListener('load', function () {
            InitWebReader();
        });
    }




</script>
</html>
